@layout("/common/_container.html"){
  <form class="form-horizontal" id="formsubmit" method="POST" action="/excel/download" onsubmit="return false" enctype="multipart/form-data" >
<div class="form-horizontal" id="excelInfoForm">
<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>excel导出</h5>
			</div>
			<div class="ibox-content">
				<div class="form-horizontal">
					<div class="form-group">
						<label class="col-sm-2 control-label">表名</label>
						<div class="col-sm-10">
							<textarea rows="5" cols="120" name="sql" id="sql"></textarea>
							<span class="help-block m-b-none">例如:select * from sys_user</span>
						</div>
					</div>
                <div class="form-group">
					<label class="col-md-2 control-label">导出文件名</label>
					<div class="col-md-10">
						<input class="form-control" placeholder="文件名" type="text"
							maxlength="200" name="fileName" id="fileName" value="" />
					</div>
				</div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-2">
							<button id="showInfo" class="btn btn-primary" onclick="excel.showtables()">显示数据</button>
							<button id="save" class="btn btn-primary" onclick="excel.generate()">导出文件</button>
							
						</div>
					</div>
				</div>
			</div>
		</div>

   </div>

</div>
</div>
<div id="detail">
<div class="form-horizontal" id="codeInfoDetailForm">
<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>基本配置</h5>
			</div>
			<div class="ibox-content">
				<div class="form-horizontal">
				<div id="datas">
					<table class="table">
					</table>
				</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
</div>
</form>

<script src="/modular/system/excel/excel.js"></script>
@}
